﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;

namespace EC21_EDiamond
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                rpDanhMuc.DataSource = DanhMucBUS.Ds_DanhMuc();
                rpDanhMuc.DataBind();
                rpDsSpIndex.DataSource = SanPhamBUS.Ds_SpIndex();
                rpDsSpIndex.DataBind();
                spDsSpMoiNhat.DataSource = SanPhamBUS.Ds_SpMoiNhat();
                spDsSpMoiNhat.DataBind();
            }
        }

        protected void btnSendMail_Click(object sender, EventArgs e)
        {
            Response.Redirect("SendMail.aspx?id="+txtEmail.Text.ToString());
        }
    }
}